package uit.shoeshop.model;

import uit.shoeshop.dao.ProductDAO;
import uit.shoeshop.dto.ProductDTO;

import java.sql.SQLException;
public class DetailModel {
	public DetailModel(){
		
	}
	
	public ProductDTO getProduct(int productId) throws SQLException{
		ProductDTO result;
		ProductDAO productTbl = new ProductDAO();
		
		result = productTbl.getProductDetail(productId);
		
		productTbl = null;
		return result;
	}
}
